package scau.redi.social_platform.domain.pojo;

import java.util.Date;

public class SharedComment {
    private Integer id;

    private Integer sharedId;

    private Integer userId;

    private Integer replyCommentId;

    private Date createTime;

    private Date updateTime;

    private String commentText;

    public SharedComment(Integer id, Integer sharedId, Integer userId, Integer replyCommentId, Date createTime, Date updateTime) {
        this.id = id;
        this.sharedId = sharedId;
        this.userId = userId;
        this.replyCommentId = replyCommentId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public SharedComment(Integer id, Integer sharedId, Integer userId, Integer replyCommentId, Date createTime, Date updateTime, String commentText) {
        this.id = id;
        this.sharedId = sharedId;
        this.userId = userId;
        this.replyCommentId = replyCommentId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.commentText = commentText;
    }

    public SharedComment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSharedId() {
        return sharedId;
    }

    public void setSharedId(Integer sharedId) {
        this.sharedId = sharedId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(Integer replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText == null ? null : commentText.trim();
    }
}